<?php
if(isset($_GET['option'])){
	if(isset($_POST['submit'], $_POST['idTaskDel'])){
		switch($_GET['option']){
			case 'check':
				foreach($_POST['idTaskDel'] as $idTask){
					TodoListModel::delTask($idTask);
				}
			break;
		}
	}
}
require_once MODEL_DIR.'/TodoListModel.php';
$oTodoInstance = new TodoListModel();
$aiassTasksList = $oTodoInstance->getTasks();
require_once VIEW_DIR.'/formTodoListDel.php';
